package com.authine.cloudpivot.ext.dto.model.golden;


import lombok.*;
import lombok.experimental.Accessors;

import javax.annotation.Nullable;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class GoldenTaxDetail implements Serializable {

    private static final long serialVersionUID = -3972427226318793675L;
    private String id;
    /**
     * 金税表ID
     */
    private String golden_tax_id;

    /**
     * 商品名称
     */
    private String name;
    /**
     * 型号 规格
     */
    private String model_spec;
    /**
     * 单位
     */
    private String unit;
    /**
     * 数量
     */
    private BigDecimal quantity;
    /**
     * 含税单价
     */
    private BigDecimal gross_price;
    /**
     * 是否含税
     */
    private Integer is_tax;
    /**
     * 未税小计
     */
    private BigDecimal amount;
    /**
     * 税率
     */
    private BigDecimal tax_rate;
    /**
     * 税额
     */
    private BigDecimal tax;
    /**
     * 折扣未税
     */
    private BigDecimal untaxed_discount;
    /**
     * 折扣税额
     */
    private BigDecimal discount_tax;
    /**
     * 折扣
     */
    private String golden_tax;
    /**
     * 创建时间
     */
    private Date createdTime;
    /**
     * 修改时间
     */
    private Date modifiedTime;
    /**
     * 是否服务费
     */
    private Boolean ifService;



    public Boolean getIfService() {
        if (null == ifService) {
            return false;
        }
        return ifService;
    }

    public void setIfService(Boolean ifService) {
        this.ifService = ifService;
    }
}

